package bugzillapreprocessor.model;

import java.util.ArrayList;

/**
 * The issue class is a representation of the XML Issue tag (and its children)
 * from the bugzilla XML file.
 * 
 * @author Mohamed Khayata
 */
public class Issue {

	private String issueId;
	private String issueType;
	private String resolution;
	private String issueStatus;
	private String deltaTs; // delta_ts_days_since_2000_01_01 => calculate the
							// days since 01.01.2000
	private String creationTs;// creation_ts_days_since_2000_01_01 => calculate
								// the days since 01.01.2000
	private String priority;
	private String reporter;
	private String assignedTo;
	private ArrayList<String> dependsOnList;

	/**
	 * Constructor - Initialize
	 * 
	 * @param issueId
	 *            XML tag value
	 * @param issueStatus
	 *            XML tag value
	 * @param priority
	 *            XML tag value
	 * @param resolution
	 *            XML tag value
	 * @param assignedTo
	 *            XML tag value
	 * @param deltaTs
	 *            XML tag value
	 * @param reporter
	 *            XML tag value
	 * @param issueType
	 *            XML tag value
	 * @param creationTs
	 *            XML tag value
	 * @param dependsOnList
	 *            XML tag value
	 */
	public Issue(String issueId, String issueStatus, String priority,
			String resolution, String assignedTo, String deltaTs,
			String reporter, String issueType, String creationTs,
			ArrayList<String> dependsOnList) {

		this.issueId = issueId;
		this.issueType = issueType;
		this.resolution = resolution;
		this.issueStatus = issueStatus;
		this.deltaTs = deltaTs;
		this.creationTs = creationTs;
		this.priority = priority;
		this.reporter = reporter;
		this.assignedTo = assignedTo;
		this.dependsOnList = dependsOnList;

	}

	// Getters and setters
	public String getResolution() {
		return resolution;
	}

	public String getIssueStatus() {
		return issueStatus;
	}

	public String getDelta_ts() {
		return deltaTs;
	}

	public String getCreation_ts() {
		return creationTs;
	}

	public String getIssueID() {
		return issueId;
	}

	public String getIssueType() {
		return issueType;
	}

	public String getPriority() {
		return priority;
	}

	public String getReporter() {
		return reporter;
	}

	public String getAssignedTo() {
		return assignedTo;
	}

	public ArrayList<String> getDependsOnIssueList() {
		return dependsOnList;
	}

	public void setIssueID(String Issue_id) {
		this.issueId = Issue_id;
	}

	public void setIssueStatus(String Issue_status) {
		this.issueStatus = Issue_status;
	}

	public void setIssueType(String Issue_type) {
		this.issueType = Issue_type;
	}

	public void setResolution(String Resolution) {
		this.resolution = Resolution;
	}

	public void setDeltaTS(String Delta_ts) {
		this.deltaTs = Delta_ts;
	}

	public void setCreationTS(String Creation_ts) {
		this.creationTs = Creation_ts;
	}

	public void setPriority(String Priority) {
		this.priority = Priority;
	}

	public void setReporter(String Reporter) {
		this.reporter = Reporter;
	}

	public void setAssignedTo(String Assigned_to) {
		this.assignedTo = Assigned_to;
	}
}
